home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form frmCheckList
- Caption = "BmpLst - Check List Sample"
- ClientHeight = 2805
- ClientLeft = 1755
- ClientTop = 1515
- ClientWidth = 4710
- Height = 3210
- Left = 1695
- LinkTopic = "Form1"
- ScaleHeight = 2805
- ScaleWidth = 4710
- Top = 1170
- Width = 4830
- Begin VB.PictureBox picChecked
- AutoSize = -1 'True
- BackColor = &H00FFFFFF&
- BorderStyle = 0 'None
- Height = 165
- Left = 360
- Picture = "checklst.frx":0000
- ScaleHeight = 165
- ScaleWidth = 165
- TabIndex = 2
- Top = 2640
- Visible = 0 'False
- Width = 165
- End
- Begin VB.PictureBox picUnchecked
- AutoSize = -1 'True
- BackColor = &H00FFFFFF&
- BorderStyle = 0 'None
- Height = 165
- Left = 120
- Picture = "checklst.frx":00DA
- ScaleHeight = 165
- ScaleWidth = 165
- TabIndex = 1
- Top = 2640
- Visible = 0 'False
- Width = 165
- End
- Begin BmplstLib.BmpList BmpList1
- Height = 2535
- Left = 120
- TabIndex = 0
- Top = 120
- Width = 4455
- _Version = 131074
- _ExtentX = 7858
- _ExtentY = 4471
- _StockProps = 77
- ForeColor = -2147483640
- BackColor = -2147483643
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- BorderStyle = 1
- BorderEffect = 2
- BottomMargin = 0
- ItemHeight = 600
- ItemPlacement = 2
- ItemWidth = 1800
- LeftMargin = 120
- MultiColumn = 0 'False
- MultiSelect = 0
- NumColumns = 0
- Sorted = 0 'False
- TopMargin = 0
- VertGap = 60
- ColDelim = " "
- HScroll = -1 'True
- ValueCol = -1
- Dividers = 0
- DividerEffect = 0
- FindCol = -1
- BlinkInterval = 500
- SortCol = ""
- SortOrder = 0
- End
- Attribute VB_Name = "frmCheckList"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- ' NOTE: BmpList1.ItemPlacement is set to 2
- ' in the properties browser.
- Option Explicit
- Private Sub BmpList1_Click()
- ' Change to the correct picture.
- If BmpList1.ItemData(BmpList1.ListIndex) Then
- BmpList1.Picture(BmpList1.ListIndex) = picUnchecked.Picture
- Else
- BmpList1.Picture(BmpList1.ListIndex) = picChecked.Picture
- End If
- ' Keep track of the current value of the item clicked.
- BmpList1.ItemData(BmpList1.ListIndex) = Not BmpList1.ItemData(BmpList1.ListIndex)
- End Sub
- Private Sub Form_Load()
- ' Add entries to the BmpList box.
- ' Store the check box state in the ItemData
- ' property. All items here are initially unchecked
- ' (except the first item, Install Software).
- BmpList1.AddItem "Install Software"
- BmpList1.Picture(BmpList1.NewIndex) = picChecked.Picture
- BmpList1.ItemData(BmpList1.NewIndex) = True
- BmpList1.AddItem "Install Sample Files"
- BmpList1.Picture(BmpList1.NewIndex) = picUnchecked.Picture
- BmpList1.ItemData(BmpList1.NewIndex) = False
- BmpList1.AddItem "Install Clip Art Files"
- BmpList1.Picture(BmpList1.NewIndex) = picUnchecked.Picture
- BmpList1.ItemData(BmpList1.NewIndex) = False
- BmpList1.AddItem "Install Sound Files"
- BmpList1.Picture(BmpList1.NewIndex) = picUnchecked.Picture
- BmpList1.ItemData(BmpList1.NewIndex) = False
- BmpList1.AddItem "Read Version History"
- BmpList1.Picture(BmpList1.NewIndex) = picUnchecked.Picture
- BmpList1.ItemData(BmpList1.NewIndex) = False
- End Sub
-